package com.qingcheng.consumer;



import com.qingcheng.service.goods.SpuPull;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;
import org.springframework.beans.factory.annotation.Autowired;

/**@author shenwei
 * 生成商品下架详情页监听类
 */

public class MessageConsumerPull implements MessageListener {


    @Autowired
    private SpuPull spuPull;

    @Override
    public void onMessage(Message message) {
        spuPull.pull(new String(message.getBody()));
    }
}
